package com.ssn.visitor.shop;

public class Client {
    public static void main(String[] args) {
        Visitor customer = new Customer();
        Visitor cashier = new Cashier();
        ShopCar shopCar = new ShopCar();
        Product a1 = new Apple();
        Product a2 = new Apple();
        Product b1 = new Book();
        shopCar.add(a1);
        shopCar.add(a2);
        shopCar.add(b1);
        shopCar.accept(customer);
        shopCar.accept(cashier);
    }
}
